package indi.kider.server.woniubus.service;


import indi.kider.common.model.woniubus.LeaseBusAndRent;
import indi.kider.common.model.woniubus.LeaseBusQuery;
import pers.vankid.common.model.base.CommonResponse;
import pers.vankid.common.utils.page.PageRequest;

import java.util.List;
import java.util.Map;

/**
 *  退租和换房业务申请接口
 */
public interface LeaseBusService {

    /**
     * 获取待审核列表
     *
     * @param request
     * @return
     */
    List<Map> queryLeaseBusListForSh(PageRequest<LeaseBusQuery> request);

    /**
     * 审核
     * @param leaseBus
     * @return
     * @throws Exception
     */
    CommonResponse sh(LeaseBusQuery leaseBus)throws Exception;
    /**
     * 审核驳回
     * @param leaseBus
     * @return
     * @throws Exception
     */
    CommonResponse shErr(LeaseBusQuery leaseBus)throws Exception;
    /**
     * 获取服务列表
     *
     * @param request
     * @return
     */
    List<Map> queryLeaseBusListForGjSh(PageRequest<LeaseBusQuery> request);

    /**
     * 管家审核
     * @param leaseBusAndRent
     * @return
     * @throws Exception
     */
    CommonResponse gjsh(LeaseBusAndRent leaseBusAndRent)throws Exception;

    /**
     * 管家审核驳回
     * @param leaseBus
     * @return
     * @throws Exception
     */
    CommonResponse gjshErr(LeaseBusQuery leaseBus)throws Exception;
}
